import useStore from '@/store/index'

export function useTabbarState() {
    let store = useStore();
    console.log(store.$state.isTabBarShow)
    let openTabbar = function () {
        console.log("打开底部栏")
        store.$state.isTabBarShow = true;
    }
    let closeTabbar = function () {
        console.log("关闭底部栏")
        store.$state.isTabBarShow = false;
    }

    return {
        openTabbar,
        closeTabbar
    }
}